<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>Module</cContentSchemaName>
				<cContentXmlBrief>
					<Content position="" moduleType="TwitterProfile" box="" title="" height="" linkType="internal" display="all" scrollAmount="6" behaviour="scroll" direction="left">
						<username/>
						<version>2</version>
						<type>profile</type>
						<rrp>30</rrp>
						<interval>20000</interval>
						<width>auto</width>
						<height>300</height>
						<theme>
							<shell background="#333333" color="#ffffff"/>
							<tweets background="#000000" color="#ffffff" links="#4aed05"/>
						</theme>
						<features>
							<scrollbar>false</scrollbar>
							<loop>false</loop>
							<live>false</live>
							<hashtags>true</hashtags>
							<timestamp>true</timestamp>
							<avatars>false</avatars>
							<behaviour>all</behaviour>
						</features>
					</Content>
				</cContentXmlBrief>
				<cContentXmlDetail/>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
				<bCascade/>
			</tblContent>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind id="cModuleTitle" nodeset="tblContent/cContentName" required="false()" type="string"/>
		<bind nodeset="tblContent/cContentXmlBrief/Content">
			<bind id="cPosition" nodeset="@position" required="true()" type="string"/>
			<bind id="cModuleType" nodeset="@moduleType" required="true()" type="string"/>
			<bind id="cModuleBox" nodeset="@box" required="false()" type="string"/>
			<bind id="cModuleTitle" nodeset="@title" required="false()" type="string"/>
			<bind id="cModuleTitleDisplay" nodeset="@displayTitle" required="false()" type="string"/>
			<bind id="cTwitterUsername" nodeset="username" required="true()" type="string"/>
			<bind id="nInterval" nodeset="interval" required="false()" type="string"/>
			<bind id="nNumberOfTweets" nodeset="rrp" required="false()" type="string"/>
      <bind id="nHeightInPixels" nodeset="height" required="true()" type="number"/>
      <bind nodeset="theme/shell">
				<bind id="cColorShellBG" nodeset="@background" required="false()" type="string"/>
				<bind id="cColorShellText" nodeset="@color" required="false()" type="string"/>
			</bind>
			<bind nodeset="theme/tweets">
				<bind id="cColorTweetBG" nodeset="@background" required="false()" type="string"/>
				<bind id="cColorTweetText" nodeset="@color" required="false()" type="string"/>
				<bind id="cColorLinks" nodeset="@links" required="false()" type="string"/>
			</bind>
			<bind nodeset="features">
				<bind id="cLive" nodeset="live" required="false()" type="string"/>
				<bind id="cScrollBar" nodeset="scrollbar" required="false()" type="string"/>
				<bind id="cBehaviour" nodeset="behaviour" required="false()" type="string"/>
				<bind id="cLoop" nodeset="loop" required="false()" type="string"/>
			</bind>
		</bind>
		<bind id="cContentBody" nodeset="tblContent/cContentXmlBrief/Content" required="false()" type="string"/>
		<bind id="dPublishDate" nodeset="tblContent/dPublishDate" required="false()" type="string"/>
		<bind id="dExpireDate" nodeset="tblContent/dExpireDate" required="false()" type="string"/>
		<bind id="nStatus" nodeset="tblContent/nStatus" required="true()" type="string"/>
		<bind id="cDescription" nodeset="tblContent/cDescription" required="false()" type="string"/>
		<bind id="bCascade" nodeset="tblContent/bCascade" required="false()" type="string"/>
	</model>
	<group ref="EditContent" class="2col">
    <label>Twitter Profile Module</label>
    <group>
			<group>
			 <!-- These hidden fields and bindings are required for the component-->
			  <input bind="nContentKey" class="hidden">
				  <label>ContentId</label>
			  </input>
			  <input bind="cModuleType" class="hidden">
				<label>ModuleType</label>
			  </input>
			  <!-- end of hidden fields -->
			 <label>Settings</label>
			 <input bind="cPosition" class="readonly">
				  <label>Position</label>
			 </input>
				<input bind="dPublishDate" class="calendar short">
					<label>Publish Date</label>
				</input>
				<input bind="dExpireDate" class="calendar short">
					<label>Expire Date</label>
				</input>
        <select1 bind="nStatus" appearance="full" class="required vshort">
          <label>Status</label>
          <item>
            <label>Live</label>
            <value>1</value>
          </item>
          <item>
            <label>Hidden</label>
            <value>0</value>
          </item>
        </select1>
        <select bind="bCascade" appearance="full">
          <label>Cascade to Child Pages</label>
          <item>
            <label></label>
            <value>true</value>
          </item>
        </select>
        </group>
    <group>
      <label>Box Layout Settings</label>
			 <select1 bind="cModuleBox" class="boxStyle" appearance="minimal">
			    <label>Box Style</label>
				 <item>
					 <label>None</label>
					 <value>false</value>
				 </item>
			    <item>
					<label>Default Box</label>
					<value>Default Box</value>
				</item>
			  </select1>
			 </group>
			</group>
			<group class="inline">
				<label>Twitter Profile Settings</label>
        <alert>Twitter have deprecated this version of twitter timelines. Instead you need to now go to <a href="https://twitter.com/settings/widgets">https://twitter.com/settings/widgets</a> sign in with your twitter account and create a widget. You then need to copy and paste the code into an Embedded HTML module not this module.
      </alert>
				<!--<input bind="cModuleTitle">
					<label>Title</label>
				</input>
				<input bind="cTwitterUsername" class="required">
					<label>Twitter Username</label>
				</input>
				<select bind="cLive" appearance="full" class="required vshort">
					<label>Poll for new results?</label>
					<item>
						<label>Yes</label>
						<value>true</value>
					</item>
				</select>
				<select bind="cScrollBar" appearance="full" class="required vshort">
					<label>Include scrollbar?</label>
					<item>
						<label>Yes</label>
						<value>true</value>
					</item>
				</select>
				<select1 bind="cBehaviour" appearance="full" class="required vshort">
					<label>Behaviour</label>
					<item>
						<label>Timed Interval</label>
						<value>default</value>
						<toggle case="cDisplay_2" event="DOMActivate"/>
					</item>
					<item>
						<label>Load all tweets</label>
						<value>all</value>
						<toggle case="cDisplay_1" event="DOMActivate"/>
					</item>
				</select1>
				<switch class="disable">
					<case id="cDisplay_1"/>
					<case id="cDisplay_2">
						<select bind="cLoop" appearance="full" class="required vshort">
							<label>Loop results?</label>
							<item>
								<label>Yes</label>
								<value>true</value>
							</item>
						</select>
						<range bind="nInterval" start="1" end="20" step="1">
							<label>Tweet Interval</label>
						</range>
					</case>
				</switch>
				<range bind="nNumberOfTweets" start="1" end="20" step="1">
					<label>Number of Tweets</label>
				</range>
        <range bind="nHeightInPixels" start="70" end="600" step="1">
          <label>Height in Pixels</label>
        </range>-->
			</group>
			<!--<group class="inline">
				<label>Appearance Colors</label>
				<input bind="cColorShellBG" class="colorPicker">
					<label>Shell Background</label>
				</input>
				<input bind="cColorShellText" class="colorPicker">
					<label>Shell Text</label>
				</input>
				<input bind="cColorTweetBG" class="colorPicker">
					<label>Tweet Background</label>
				</input>
				<input bind="cColorTweetText" class="colorPicker">
					<label>Tweet Text</label>
				</input>
				<input bind="cColorLinks" class="colorPicker">
					<label>Links</label>
				</input>
			</group>-->
		</group>
	<group ref="submit" class="contentSubmit">
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save Twitter Profile</label>
		</submit>
	</group>
</Content>
